package com.changcheng.project.obupublish.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.changcheng.project.obupublish.mapper.AObuPublishMapper;
import com.changcheng.project.obupublish.domain.AObuPublish;
import com.changcheng.project.obupublish.service.IAObuPublishService;
import com.changcheng.common.utils.text.Convert;

/**
 * obu发布Service业务层处理
 * 
 * @author dazhi
 * @date 2020-10-30
 */
@Service
public class AObuPublishServiceImpl implements IAObuPublishService 
{
    @Autowired
    private AObuPublishMapper aObuPublishMapper;

    /**
     * 查询obu发布
     * 
     * @param id obu发布ID
     * @return obu发布
     */
    @Override
    public AObuPublish selectAObuPublishById(Long id)
    {
        return aObuPublishMapper.selectAObuPublishById(id);
    }

    /**
     * 查询obu发布列表
     * 
     * @param aObuPublish obu发布
     * @return obu发布
     */
    @Override
    public List<AObuPublish> selectAObuPublishList(AObuPublish aObuPublish)
    {
        return aObuPublishMapper.selectAObuPublishList(aObuPublish);
    }

    /**
     * 新增obu发布
     * 
     * @param aObuPublish obu发布
     * @return 结果
     */
    @Override
    public int insertAObuPublish(AObuPublish aObuPublish)
    {
        return aObuPublishMapper.insertAObuPublish(aObuPublish);
    }

    /**
     * 修改obu发布
     * 
     * @param aObuPublish obu发布
     * @return 结果
     */
    @Override
    public int updateAObuPublish(AObuPublish aObuPublish)
    {
        return aObuPublishMapper.updateAObuPublish(aObuPublish);
    }

    /**
     * 删除obu发布对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAObuPublishByIds(String ids)
    {
        return aObuPublishMapper.deleteAObuPublishByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除obu发布信息
     * 
     * @param id obu发布ID
     * @return 结果
     */
    @Override
    public int deleteAObuPublishById(Long id)
    {
        return aObuPublishMapper.deleteAObuPublishById(id);
    }
}
